const express = require('express');
const router = express.Router();
const { auth } = require('../middlewares/auth');
const userController = require('../controllers/user.controller');

// Public routes
router.post('/login', userController.login);

// Protected routes
router.get('/info', auth, userController.getUserInfo);
router.put('/info', auth, userController.updateUserInfo);

module.exports = router; 